package com.zoe.onelink.core.exception.interceptor;

import com.zoe.onelink.common.entity.ResultVO;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-12-16
 */
public interface WebExceptionInterceptor {

    /**
     * 全局异常处理前逻辑
     */
    default Exception beforeHandle(Exception ex) {
        return ex;
    }

    /**
     * 全局异常处理后逻辑
     */
    default Exception afterHandle(Exception ex, ResultVO<Object> resultVO) {
        return ex;
    }

}
